# ch07 The Book of Ruby - http://www.sapphiresteel.com

fn = 'file_methods.rb'
if File.exist?(fn)
  puts(File.expand_path(fn))
  puts(File.basename(fn))
  puts(File.dirname(fn))
  puts(File.extname(fn))
  puts(File.mtime(fn))
  puts("#{File.size(fn)} bytes")
else
  puts("Can't find file!")
end
